-- GENERATED SPELL FOR [Ruby Guardian] --


function spell0_27725(pUnit, Event) --@Cleave,n/a--
pUnit:FullCastSpellOnTarget(40504,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_27725', 550, 1)
end

function Sorts_27725(pUnit, Event)
local choix_sorts_27725 = math.random(0, 0)
if choix_sorts_27725 == 0 then
pUnit:RegisterEvent('spell0_27725', 1, 1)
end
end

function mob27725_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_27725', math.random(1500, 3000), 1)
end

function mob27725_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob27725_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob27725_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(27725, 1, 'mob27725_Action')
RegisterUnitEvent(27725, 2, 'mob27725_Leave')
RegisterUnitEvent(27725, 3, 'mob27725_Kill')
RegisterUnitEvent(27725, 4, 'mob27725_Die')
